package com.strategy.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * ClassName:ObjectStoreProperties
 * Package:com.strategy.config
 * Description
 *
 * @Author:@wenxueshi
 * @Create:2023/7/16 - 21:40
 * @Version:v1.0
 */
@Getter
@Setter
@Component
@ConfigurationProperties("application.store") //获取配置文件中的配置信息
public class ObjectStoreProperties {

    private ConfigEntity oss;

    private ConfigEntity minio;

    //静态内部类
    @Getter
    @Setter
    public static class ConfigEntity{
        private String endpoint;

        private String accessKey;

        private String secretKey;

        private String bucketname;
    }
}
